# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :serializer.py
# @Time      :2022/4/11 10:34
# @Author    :张志坤


from rest_framework.serializers import ModelSerializer
from .models import Users, Address


# 用户系列化器
class UserSer(ModelSerializer):
    class Meta:
        model = Users
        fields = "__all__"


# 收货地址序列化器
class AddressSer(ModelSerializer):
    class Meta:
        model = Address
        fields = "__all__"
